package com.mes.system.dao.iface;

import java.util.List;

import com.mes.common.dao.iface.IBasicDao;
import com.mes.system.domain.Role;

public interface IRoleDao extends IBasicDao<Role> {

	/**
	 * 根据人员的Uid获得该人员对应的角色列表
	 * @param employeeUid
	 * @return
	 * @throws Exception
	 */
	public List<Role> getRolesByEmployeeUid(String employeeUid) throws Exception;

	/**
	 * 根据人员Uid获得该人员未分配的角色
	 * @param employeeUid
	 * @return
	 */
	public List<Role> getRolesNoEmployee(String employeeUid) throws Exception;

	public void updateBDFRole(com.bstek.bdf2.core.model.Role bdfRole) throws Exception;

	public void deleteBDFRole(com.bstek.bdf2.core.model.Role bdfRole) throws Exception;

	public void saveBDFRole(com.bstek.bdf2.core.model.Role bdfRole) throws Exception;
	
	public com.bstek.bdf2.core.model.Role getBdfRoleByName(String name);
}
